package learn_design_patterns.templatemethod.sort;

import java.util.Arrays;

public class DuckSortTestDive {
	public static void main(String[] args) {
		Duck[] ducks = { 
				new Duck("Daffy", 8), 
				new Duck("Dewey", 2),
				new Duck("Howard", 7),
				new Duck("Louie", 2),
				new Duck("Donald", 10), 
				new Duck("Huey", 2)
		};
		System.out.println("sort before:");
		System.out.println(Arrays.toString(ducks));
		Arrays.sort(ducks);
		
		System.out.println();
		System.out.println("sort after:");
		System.out.println(Arrays.toString(ducks));
	}
}
